home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ShareWare OnLine 2
/
ShareWare OnLine Volume 2 (CMS Software)(1993).iso
/
music
/
led200sw.zip
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-03-10
|
5KB
|
160 lines
@echo off
IF NOT "%1" == "" GOTO :HELP
:MENU
CLS
ECHO.
echo ╔═══════════════════════════════════════════════════════════════╗
ECHO ║ *********** SHAREWARE VERSION ************* ║
ECHO ║ ║
ECHO ║ LOUDSPEAKER ENCLOSURE DESIGNER version 2.00 ║
ECHO ║ ║
ECHO ║ Program installation utility ║
echo ║ ║
echo ╚═══════════════════════════════════════════════════════════════╝
echo.
echo This installation utility WILL remove previous versions of LED.
echo.
echo Press ENTER to continue, or Q to quit.
echo.
echo.
input
if errorlevel 81 if not errorlevel 82 goto :QUIT
:MENU2
cls
echo.
echo.
echo On which hard drive is AS EASY AS spreadsheet installed?
echo. Enter only the drive letter, i.e. C
echo.
echo As Easy As must reside on this drive in it's default
echo directory, \ASEASY\.
echo.
echo.
echo EXAMPLE: If AS EASY AS is installed in C:\ASEASY\, enter C now.
echo.
echo.
input
if errorlevel 75 goto :NOFLOPPY
if errorlevel 74 if not errorlevel 75 SET DR1=J
if errorlevel 73 if not errorlevel 74 SET DR1=I
if errorlevel 72 if not errorlevel 73 SET DR1=H
if errorlevel 71 if not errorlevel 72 SET DR1=G
if errorlevel 70 if not errorlevel 71 SET DR1=F
if errorlevel 69 if not errorlevel 70 SET DR1=E
if errorlevel 68 if not errorlevel 69 SET DR1=D
if errorlevel 67 if not errorlevel 68 SET DR1=C
if errorlevel 66 if not errorlevel 67 goto :NOFLOPPY
if errorlevel 65 if not errorlevel 66 goto :NOFLOPPY
:INSTALL
if not exist %DR1%:\aseasy\*.exe goto :NOASEASY
md %DR1%:\aseasy\led > nul
md %DR1%:\aseasy\led\drivers > nul
md %DR1%:\aseasy\led\filters > nul
if exist %DR1%:\aseasy\led\l*.wks attrib -r %DR1%:\aseasy\led\l*.wks
if exist %DR1%:\aseasy\led\l*.wks del %DR1%:\aseasy\led\l*.wks
copy l200-psw.fpx %DR1%:\aseasy\led\l200-psw.exe > nul
%DR1%:\aseasy\led\l200-psw %DR1%:\aseasy\led\
del %DR1%:\aseasy\led\l200-psw.exe > nul
ren %DR1%:\ASEASY\LED\led-sw.200 LEDV200.WKS
attrib +r %DR1%:\aseasy\led\l*.wks
copy l200-d.fpx %DR1%:\aseasy\led\drivers\l200-d.exe > nul
%DR1%:\aseasy\led\drivers\l200-d -n %DR1%:\aseasy\led\drivers\
del %DR1%:\aseasy\led\drivers\l200-d.exe > nul
copy l200-f.fpx %DR1%:\aseasy\led\filters\l200-f.exe > nul
%DR1%:\aseasy\led\filters\l200-f -n %DR1%:\aseasy\led\filters\
del %DR1%:\aseasy\led\filters\l200-f.exe > nul
attrib +r %DR1%:\aseasy\led\filters\*.*
goto :PRTDOX
:NOASEASY
echo.
echo.
echo AS EASY AS WAS NOT FOUND IN %DR1%:\ASEASY\ !
ECHO.
echo Press ENTER to select another drive or Q to quit.
echo.
echo.
input
if errorlevel 81 if not errorlevel 82 goto :quit
set dr1=
goto :MENU2
:NOFLOPPY
echo.
echo.
echo Valid drives are C through J . You must select one of these
echo letters for LED installation.
echo.
echo Press ENTER to select another drive or Q to quit.
echo.
echo.
input
if errorlevel 81 if not errorlevel 82 goto :quit
goto :MENU2
:HELP
echo.
echo To install LED v2.00, type INSTALL
echo.
echo Note that As Easy As spreadsheet version 5.50C or newer must already
echo be installed in it's default directory, \ASEASY\.
echo.
goto :END
:PRTDOX
cls
echo.
echo. Do you want to print LED's instruction manual now (Y/N)?
echo The document is 20 pages long.
echo.
input
if errorlevel 89 if not errorlevel 90 goto :PRT
if errorlevel 78 if not errorlevel 79 goto :DONE
goto :PRTDOX
:PRT
echo.
echo Copying document to printer now...
copy %DR1%:\aseasy\led\ledv200.man prn > nul
goto :DONE
:QUIT
echo.
echo.
echo Installation terminated.
echo.
echo LED was not installed.
echo.
goto :END
:DONE
cls
echo.
echo ╔═══════════════════════════════════════════════════════════════╗
ECHO ║ ║
ECHO ║ LOUDSPEAKER ENCLOSURE DESIGNER version 2.00 ║
ECHO ║ ║
ECHO ║ Installation complete! ║
echo ║ ║
echo ╚═══════════════════════════════════════════════════════════════╝
echo.
echo Do you want to create an LED2.BAT startup file now (Y/N)?
echo.
echo.
input
if errorlevel 89 if not errorlevel 90 goto :MKBAT
if errorlevel 78 if not errorlevel 79 goto :END
:MKBAT
set DR1=
makebat
:END
SET DR1=
echo.